import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /theme/info/{id}
查询指定主题信息 */
export const getThemeInfo = (id) => Vue.http.get(URL_PREFIX + '/theme/info/' + id)

/* /theme/statistics/theme/{id}
查询指定主题统计数据 */
export const getThemeStatistics = (id) => Vue.http.get(URL_PREFIX + '/theme/statistics/theme/' + id)

/* /theme/statistics/recently/{id}
查询主题近期统计数据 */
export const getThemeSpreadEffect = (id, params) =>
  Vue.http.get(URL_PREFIX + '/theme/statistics/recently/' + id, { params })

/* /theme/statistics/site_top/{id}
平台贡献率top5 */
export const getThemeSite_top = (id, params) =>
  Vue.http.get(URL_PREFIX + '/theme/statistics/site_top/' + id, { params })

/* /theme/statistics/account_top/{id}
账号贡献率top5 */
export const getThemeAccount_top = (id, params) =>
  Vue.http.get(URL_PREFIX + '/theme/statistics/account_top/' + id, { params })

/* /theme/statistics/trend/{id}
传播趋势 */
export const getThemeSpreadTrend = (id, params) =>
  Vue.http.get(URL_PREFIX + '/theme/statistics/trend/' + id, { params })

/* /theme/statistics/province/{id}
热点报道地域分布 */
export const getThemeHotReportArea = (id, params) =>
  Vue.http.get(URL_PREFIX + '/theme/statistics/province/' + id, { params })
